<%@ page import="java.sql.*,studentportal.*"%>
<html>

<head>
 
<title>New Page 1</title>
</head>

<body background="indtextb.jpg" bgcolor="#FFFFFF" text="#000000" link="#3366CC" vlink="#666666" alink="#996600">

<table border="0" width="100%" bordercolorlight="#666666" bordercolordark="#000000">
  <tr>
    <td width="100%"><img border="0" src="StdPrtlbanner.jpg" width="846" height="65"><!--mstheme--><font face="Trebuchet MS, Arial, Helvetica">&nbsp;<!--mstheme--></font></td>
  </tr>
</table>
<%
			String fid=(String)session.getAttribute("FacultyID");
			Connection con=MySQLDriver.getConnection();
			Statement st=con.createStatement();
			String qry="select faculty_designation_id from faculty_master where faculty_id='"+fid+"'";
			System.out.println(qry);
			ResultSet rs=st.executeQuery(qry);
			if(rs.next())
			{
				String qry1="select DESIGANTION_NAME from designation_master where designation_id='"+rs.getString(1)+"'";
				System.out.println(qry1);
				ResultSet rs1=st.executeQuery(qry1);
				rs1.next();
				if(rs1.getString(1).equals("HOD"))
				{
					response.sendRedirect("./CheckFacDesg.jsp");
					%>
									
									

					<%
				}
				else
				{
									/*
									RequestDispatcher rd=request.getRequestDispatcher("/FacultyHome.html");
									rd.include(request,response);
									out.println("<p><font color=\"#FF0000\">* You are Note eligable For Entrying Marks<br>* This is For Only HOD</font></p>");
									*/
									response.sendRedirect("./FacultyHome.html");
				}
			}
%>
<table border="0" width="100%">
  <tr>
     <td width="20%">
      <p align="center"><font face="Trebuchet MS, Arial, Helvetica">
	  <a href="FacultyMarkCheck.jsp"><b>Faculty Marks Entry</b></a></font></td>
    
    <td width="20%">
      <p align="center"><a href="Home.html"><b>Home</b></a></td>
  </tr>
</table>
</body>
</html>
